package com.pub.dbo.domain;


public class Proxy 
{
	private int id;
	private int countryid;
	private int port;
	
	private int responseTime;
	private int speed;
	private int rating;
	
	private boolean isProcessed;
	
	private String anonymous;
	
	private String username;
	private String password;
	
	private String summary;
	private String country;
	private String ip;
	private String status;
	
    private String createdTime;
    private String modifiedTime;

    
	public Proxy()
	{
		super();
	}
	
	public int getID() 
	{
		return id;
	}
	
	public void setID(int id) 
	{
		this.id = id;
	}
	
	public String getUserName() {
		return username;
	}
	
	public void setUserName(String username) 
	{
		this.username = username;
	}
	
	public int getPort() 
	{
		return port;
	}
	
	public void setPort(int port) 
	{
		this.port = port;
	}
	
	public int getSpeed() 
	{
		return speed;
	}
	
	public void setSpeed(int speed) 
	{
		this.speed = speed;
	}
	
	public int getRating() 
	{
		return rating;
	}
	
	public void setRating(int rating) 
	{
		this.rating = rating;
	}
	
	public int getCountryid() 
	{
		return countryid;
	}
	
	public void setCountryid(int countryid) 
	{
		this.countryid = countryid;
	}

	public long getResponseTime() 
	{
		return responseTime;
	}
	
	public void setResponseTime(int responseTime) 
	{
		this.responseTime = responseTime;
	}
	
	public String getAnonymous() 
	{
		return anonymous;
	}
	
	public void setAnonymous(String anonymous)
	{
		this.anonymous = anonymous;
	}

	public boolean getIsProcessed() 
	{
		return isProcessed;
	}
	
	public void setIsProcessed(boolean isProcessed)
	{
		this.isProcessed = isProcessed;
	}
	
	public String getCountry() 
	{
		return country;
	}
	
	public void setCountry(String country)
	{
		this.country = country;
	}

	public String getPassword() 
	{
		return password;
	}
	
	public void setPassword(String password) 
	{
		this.password = password;
	}

	public String getSummary() {
		return summary;
	}
	
	public void setSummary(String summary) 
	{
		this.summary = summary;
	}

	public String getStatus() 
	{
		return status;
	}
	
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getIP() 
	{
		return ip;
	}
	
	public void setIP(String ip) 
	{
		this.ip = ip;
	}

	public String getCreatedTime()
	{
		return createdTime;
	}
	
	public void setCreatedTime(String createdTime)
	{
		this.createdTime = createdTime;
	}

	public String getModifiedTime()
	{
		return modifiedTime;
	}
	
	public void setModifiedTime(String modifiedTime)
	{
		this.modifiedTime = modifiedTime;
	}

	public int hashCode() 
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	
	public boolean equals(Object obj) 
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Proxy other = (Proxy) obj;
		if (id != other.id)
			return false;
		
		return true;
	}

	public String toString()
	{
		return username;
	}
}
